@isTest


private class testdeleteMCP {
    
    static testMethod void testTrigger() {
        
         String rtid;
        Profile p  = [select id from profile where name=: 'System Administrator'or name=: '系统管理员'];       

         User u3 =new User (alias = 'new', email = 'shlia@isoftstone.com', emailencodingkey='UTF-8', lastname = 'Testing', languagelocalekey = 'en_US', localesidkey='en_US', profileid = p.id, timezonesidkey = 'Asia/Shanghai', username='new2@testorg1.com');
        insert u3;
        User u2 =new User (alias = 'new', email = 'shlia@isoftstone.com', emailencodingkey='UTF-8', lastname = 'Testing', languagelocalekey = 'en_US', localesidkey='en_US', profileid = p.id, timezonesidkey = 'Asia/Shanghai', username='new@testorg1.com',managerid=u3.id);
        insert u2;
        
        User u1 =new User (alias = 'standt', email = 'shlia@isoftstone.com', emailencodingkey='UTF-8', lastname = 'Testing', languagelocalekey = 'en_US', localesidkey='en_US', profileid = p.id, timezonesidkey = 'Asia/Shanghai', username='standarduser@testorg1.com',managerid=u2.id);
        insert u1;

        
        system.runas(u1){
        
                monthly_cooperation_plan_with_hospital__c mcp = new monthly_cooperation_plan_with_hospital__c(Month__c = 12);
                insert mcp;
                delete mcp;
         }
       }
}